/**
 * 输入描述
 * 输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据有多组, 如果输入为0 0则结束输入
 * 
输出描述
 * 输出a+b的结果
 * 
输入例子：
1 5
10 20
0 0
输出例子：
6
30
 */

const rl = require('readline').createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;

void (async function () {
    // Write your code here
    while ((line = await readline())) {
        let tokens = line.split(' ');
        let a = parseInt(tokens[0]);
        let b = parseInt(tokens[1]);

        if (a === 0 && b === 0) {
            break;
        }

        console.log(a + b);
    }
})();
